import requests

# url = 'https://www.mashangpa.com/wechat/mp/login/'

# session = requests.session()

headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36',
    'cookie':'Hm_lvt_0d2227abf9548feda3b9cb6fddee26c0=1763386546; HMACCOUNT=640741EAA03A6FC2; Hm_lpvt_0d2227abf9548feda3b9cb6fddee26c0=1763387258; sessionid=nyx9d6g0davuef3dr2o27je1si24pt5t'
}

urls = [f'https://www.mashangpa.com/api/problem-detail/17/data/?page={i}' for i in range(1,21)]

for url in urls:
    res = requests.get(url, headers=headers)
    print(res.json())
    break
